<!DOCTYPE HTML>
<html lang="zh-CN">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="分类: JavaScript, HTTISHERE">
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>分类: JavaScript | HTTISHERE</title>
    <link rel="icon" type="image/x-icon, image/vnd.microsoft.icon" href="/favicon.ico">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>

<meta name="generator" content="Hexo 5.2.0"></head>




<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/avatar.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">HTTISHERE</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>首页</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/tags" class="waves-effect waves-light">
      
      <i class="fas fa-tags" style="zoom: 0.6;"></i>
      
      <span>标签</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/categories" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>分类</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/archives" class="waves-effect waves-light">
      
      <i class="fas fa-archive" style="zoom: 0.6;"></i>
      
      <span>归档</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/about" class="waves-effect waves-light">
      
      <i class="fas fa-user-circle" style="zoom: 0.6;"></i>
      
      <span>关于</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/friends" class="waves-effect waves-light">
      
      <i class="fas fa-address-book" style="zoom: 0.6;"></i>
      
      <span>友情链接</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>


<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/avatar.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">HTTISHERE</div>
        <div class="logo-desc">
            
            Never really desperate, only the lost of the soul.
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/tags" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-tags"></i>
			
			标签
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			分类
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			归档
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/about" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-user-circle"></i>
			
			关于
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/friends" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-address-book"></i>
			
			友情链接
		</a>
          
        </li>
        
        
    </ul>
</div>


        </div>

        
    </nav>

</header>

    <div class="bg-cover pd-header about-cover">
    <div class="container">
    <div class="row">
    <div class="col s10 offset-s1 m8 offset-m2 l8 offset-l2">
        <div class="brand">
            <div class="title center-align">
                
                HTTISHERE · 阿汪同学
                
            </div>

            <div class="description center-align">
                
                <span id="subtitle"></span>
                <script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11"></script>
                <script>
                    var typed = new Typed("#subtitle", {
                        strings: ['Life was like a box of chocolates, you never know what you\’re gonna get.\n生命就像一盒巧克力\，结果往往出人意料。','I don\’t know if we each have a destiny, or if we\’re all just floating around accidentally―like on a breeze.\n我不懂我们是否有着各自的命运\，还是只是到处随风飘荡。'],
                        startDelay: 300,
                        typeSpeed: 100,
                        loop: true,
                        backSpeed: 50,
                        showCursor: true
                    });
                </script>
                
            </div>
        </div>
    </div>
</div>


<script>
    $('.bg-cover').css('background-image', 'url(/medias/banner/0.jpg)');
</script>


    </div>
</div>

<main class="content">

    

<div id="category-cloud" class="container chip-container">
    <div class="card">
        <div class="card-content">
            <div class="tag-title center-align">
                <i class="fas fa-bookmark"></i>&nbsp;&nbsp;文章分类
            </div>
            <div class="tag-chips">
                
                
                
                <a href="/categories/%E9%9A%8F%E7%AC%94/" title="随笔: 3">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F9EBEA;">随笔
                        <span class="tag-length">3</span>
                    </span>
                </a>
                
                
                <a href="/categories/LeeCode/" title="LeeCode: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F5EEF8;">LeeCode
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E8%AF%BB%E4%B9%A6-%E5%90%AC%E4%B9%A6/" title="读书&听书: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #D5F5E3;">读书&听书
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E5%A4%A7%E5%89%8D%E7%AB%AF/" title="大前端: 20">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #E8F8F5;">大前端
                        <span class="tag-length">20</span>
                    </span>
                </a>
                
                
                <a href="/categories/JavaScript/" title="JavaScript: 20">
                    <span class="chip center-align waves-effect waves-light
                             chip-active "
                            style="background-color: #FEF9E7;">JavaScript
                        <span class="tag-length">20</span>
                    </span>
                </a>
                
                
                <a href="/categories/android/" title="android: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F8F9F9;">android
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/HTML/" title="HTML: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #82E0AA;">HTML
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E6%97%A5%E6%9C%AC%E8%AA%9E/" title="日本語: 3">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #D7BDE2;">日本語
                        <span class="tag-length">3</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E6%89%8B%E5%B8%B3/" title="手帳: 2">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #A3E4D7;">手帳
                        <span class="tag-length">2</span>
                    </span>
                </a>
                
                
                <a href="/categories/css-Less/" title="css/Less: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #85C1E9;">css/Less
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/React/" title="React: 21">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F8C471;">React
                        <span class="tag-length">21</span>
                    </span>
                </a>
                
                
                <a href="/categories/Vue/" title="Vue: 2">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F9E79F;">Vue
                        <span class="tag-length">2</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F/" title="微信小程序: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #82E0AA;">微信小程序
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/React/Taro/" title="Taro: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #A3E4D7;">Taro
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E5%91%A8%E5%88%8A/" title="周刊: 6">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #FEF9E7;">周刊
                        <span class="tag-length">6</span>
                    </span>
                </a>
                
                
                <a href="/categories/Notion/" title="Notion: 3">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #85C1E9;">Notion
                        <span class="tag-length">3</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E5%BC%80%E5%8F%91/" title="开发: 3">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F8F9F9;">开发
                        <span class="tag-length">3</span>
                    </span>
                </a>
                
                
                <a href="/categories/%E6%97%A5%E8%AF%AD%E5%88%9D%E7%BA%A7/" title="日语初级: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #FFF;">日语初级
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/Daily/" title="Daily: 5">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #85C1E9;">Daily
                        <span class="tag-length">5</span>
                    </span>
                </a>
                
                
                <a href="/categories/TypeScript/" title="TypeScript: 9">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #85C1E9;">TypeScript
                        <span class="tag-length">9</span>
                    </span>
                </a>
                
                
                <a href="/categories/algorithm/" title="algorithm: 2">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F9EBEA;">algorithm
                        <span class="tag-length">2</span>
                    </span>
                </a>
                
                
                <a href="/categories/SASS/" title="SASS: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F8F9F9;">SASS
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/browser/" title="browser: 3">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #FEF9E7;">browser
                        <span class="tag-length">3</span>
                    </span>
                </a>
                
                
                <a href="/categories/CSS-Less/" title="CSS/Less: 4">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            style="background-color: #F9EBEA;">CSS/Less
                        <span class="tag-length">4</span>
                    </span>
                </a>
                
                
            </div>
        </div>
    </div>
</div>


    

    <article id="articles" class="container articles">
        <div class="row tags-posts">
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/05/24/yuque/bo44og/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-7.jpg" class="responsive-img" alt="「大前端」表达式&amp;运算符">
                            
                            <span class="card-title">「大前端」表达式&amp;运算符</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                在一些通用的计算机语言设计理论中，能够出现在赋值表达式右边的叫做：右值表达式（RightHandSideExpression），而在 JavaScript 标准中，规定了在等号右边表达式叫做条件表达式（ConditionalExpressi
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-05-24
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/05/21/yuque/no7d0b/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-1.jpg" class="responsive-img" alt="「大前端」表达式">
                            
                            <span class="card-title">「大前端」表达式</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                在执行过程中，真正能干活的就只有表达式语句，其它语句的作用都是产生各种结构，来控制表达式语句执行，或者改变表达式语句的意义。

表达式语句实际上就是一个表达式，它是由运算符连接变量或者直接量构成的。

一般来说，表达式语句要么是函数调用，要
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-05-21
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/05/20/yuque/der7kb/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-3.jpg" class="responsive-img" alt="「大前端」语句2">
                            
                            <span class="card-title">「大前端」语句2</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                在 JavaScript 标准中，把语句分成了两种：普通语句和声明型语句。
普通语句：声明语句：
语句块语句块就是一个花括号区域，需要注意的是，语句块会产生作用域。
空语句就是单独的一个分号;，空语句的存在仅仅是从语言设计完备性的角度考虑，
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-05-20
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/05/18/yuque/kg66zp/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-4.jpg" class="responsive-img" alt="「大前端」脚本 vs 模块">
                            
                            <span class="card-title">「大前端」脚本 vs 模块</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                JavaScript 有两种源文件，一种叫做脚本，一种叫做模块。
这个区分是在 ES6 引入了模块机制开始的，在 ES5 和之前的版本中，就只有一种源文件类型（就只有脚本）。脚本是可以由浏览器或者 node 环境引入执行的，而模块只能由 J
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-05-18
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/04/01/yuque/mdsqnm/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-3.jpg" class="responsive-img" alt="「大前端」文法">
                            
                            <span class="card-title">「大前端」文法</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                文法是编译原理中对语言的写法的一种规定，一般来说，文法分成词法和语法两种。

词法规定了语言的最小语义单元：token，可以翻译成“标记”或者“词”。词法分析技术上可以使用状态机或者正则表达式来进行。

词法分类：

WhiteSpace 
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-04-01
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/03/11/yuque/ang4as/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-0.jpg" class="responsive-img" alt="「大前端」语句">
                            
                            <span class="card-title">「大前端」语句</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                比较常见的语句包括变量声明、表达式、条件、循环等。
Completion 类型q: 在 try 中有 return 语句，finally 中的内容还会执行吗？
function foo() &#123;
  try &#123;
    r
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-03-11
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/03/11/yuque/wev3mi/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-8.jpg" class="responsive-img" alt="「大前端」面向对象的JS？">
                            
                            <span class="card-title">「大前端」面向对象的JS？</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                面对对象 or 基于对象
Object：一切事物的总称。基于对象：语言和宿主的基础设施由对象来提供，并且 JavaScript 程序即是一系列互相通讯的对象集合。

对象的特点（标识性、状态和行为）：
对象具有唯一标识性：即使完全相同的两个
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-03-11
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/03/11/yuque/ayyozw/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-4.jpg" class="responsive-img" alt="「大前端」执行中都发生了什么">
                            
                            <span class="card-title">「大前端」执行中都发生了什么</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                Promise or setTimeOut得到一段 JS 代码时，浏览器或者 Node 环境首先要做的就是；传递给 JavaScript 引擎，并且要求它去执行。但是宿主环境当遇到一些事件时，会继续把一段代码传递给 JavaScript 引
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-03-11
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/03/08/yuque/nhlvq8/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-1.jpg" class="responsive-img" alt="「大前端」JS Type">
                            
                            <span class="card-title">「大前端」JS Type</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
为什么有的编程规范要求用 void 0 代替 undefined？
字符串有最大长度吗？
0.1 + 0.2 不是等于 0.3 么？为什么 JavaScript 里不是这样的？
ES6 新加入的 Symbol 是个什么东西？
为什么给对象
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-03-08
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2021/02/23/yuque/bvs01g/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-8.jpg" class="responsive-img" alt="「JS」Some points">
                            
                            <span class="card-title">「JS」Some points</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                原始类型原始类型存储的都是值，是没有函数可以调用的。&#39;1&#39;.toString() ，其实在这种情况下，&#39;1&#39;  已经不是原始类型了，而是被强制转换成了  String类型也就是对象类型，所以可以调用  toS
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-02-23
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/10/13/yuque/lw5tof/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-8.jpg" class="responsive-img" alt="「JS」数组遍历方法">
                            
                            <span class="card-title">「JS」数组遍历方法</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
forEach
map
filter
find
reduce

forEachlet arr = [1, 2, 3, 4];
arr.forEach((item) => &#123;
  console.log(item + 1);
&#
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-10-13
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/10/13/yuque/hr2ubu/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-0.jpg" class="responsive-img" alt="「JS」闭包">
                            
                            <span class="card-title">「JS」闭包</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
闭包是指有权访问另外一个函数作用域的变量的函数。——《JavaScript 高级程序设计》

闭包的特点首先是函数，其次是它可以访问到父级作用域的变量对象，即使父级函数完成调用后”理应出栈销毁“。

闭包是指那些能够访问自由变量的函数。—
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-10-13
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/10/12/yuque/nsgoo9/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-5.jpg" class="responsive-img" alt="「JS」ES6新增特性">
                            
                            <span class="card-title">「JS」ES6新增特性</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
表达式：声明、解构赋值
内置对象：字符串扩展、数值扩展、对象扩展、数组扩展、函数扩展、正则扩展、Symbol、Set、Map、Proxy、Reflect
语句与运算：Class、Module、Iterator
异步编程：Promise、G
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-10-12
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/10/10/yuque/ug30tr/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-4.jpg" class="responsive-img" alt="「JS」作用域">
                            
                            <span class="card-title">「JS」作用域</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
作用域：负责收集并维护由所有声明的标识符（变量）组成的一系列查询，并实施一套非常严格的规则，确定当前执行的代码对这些标识符（变量）的访问权限。——《你不知道的 JavaScript 上卷》

参考教程：前端进击的巨人（三）：从作用域走进闭
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-10-10
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/09/27/yuque/mmsmfe/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-1.jpg" class="responsive-img" alt="「JS」数据结构">
                            
                            <span class="card-title">「JS」数据结构</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
栈（Stack）
堆（Heap）
队列（Queue）
链表（Linked）
数组（Array）
树（Tree）
集合（Set）
哈希表（Map）

js 内变量类型：

基础类型（Undefined, Null, Boolean, Num
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-09-27
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/09/21/yuque/nsvtoo/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-1.jpg" class="responsive-img" alt="「JS」VD 1">
                            
                            <span class="card-title">「JS」VD 1</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
VD 其实就是一个 JS 对象，包括 tag（标签名），props（属性），children（子元素对象）。

&#123;
  tag: "div",
  props: &#123;
    className: "wrapper"
 
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-09-21
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2020/01/05/roughViz/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-7.jpg" class="responsive-img" alt="roughViz.js 手绘风格的网页图表js库">
                            
                            <span class="card-title">roughViz.js 手绘风格的网页图表js库</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
是一个非常个性化的图标插件，且可以根据自己喜好变换出很多不同的显示样式。推荐：★★★★☆
支持图表类型
Bar (roughViz.Bar) 条形图
Horizontal Bar (roughViz.BarH) 水平条形图
Donut (
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-01-05
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                        <a href="/tags/%E5%B7%A5%E5%85%B7-%E6%8F%92%E4%BB%B6/">
                            <span class="chip bg-color">工具/插件</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/24/js-proxy/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-4.jpg" class="responsive-img" alt="js内proxy检测">
                            
                            <span class="card-title">js内proxy检测</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
let p = new Proxy(target, handler);用于定义基本操作的自定义行为（如属性查找，赋值，枚举，函数调用等）。

target：用Proxy包装的目标对象（可以是任何类型的对象，包括原生数组，函数，甚至另一个代
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2019-01-24
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/23/js%E7%BB%91%E5%AE%9A/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-4.jpg" class="responsive-img" alt="js绑定call, apply, bind">
                            
                            <span class="card-title">js绑定call, apply, bind</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
在JavaScript内Function有3个自带的方法（call，apply，bind），均是为了改变函数体内的this指向。

相同：call，apply，bind函数第一个参数都是this要指向的对象，即想指定的上下文。
区别：


                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2019-01-23
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/22/constructor%20&%20prototype/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/cover-bg-7.jpg" class="responsive-img" alt="constructor &amp; prototype">
                            
                            <span class="card-title">constructor &amp; prototype</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary block-with-text">
                            
                                
定义：constructor 是一个对象的属性，这个属性存在在此对象的 prototype 中, 指向此对象的构造函数。


constructor 是一个对象属性；
constructor 在 prototype 中；
construc
                            
                        </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2019-01-22
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/JavaScript/" class="post-category">
                                    JavaScript
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/js/">
                            <span class="chip bg-color">js</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
        </div>
    </article>
</main>




    <footer class="page-footer bg-color">
    
    <div class="container row center-align" style="margin-bottom: 0px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            
                <span id="year">2019-2024</span>
            
            <span id="year">2019</span>
            <a href="/about" target="_blank">阿汪同学</a>
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <br>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">
    <a href="https://github.com/httIsHere" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
        <i class="fab fa-github"></i>
    </a>



    <a href="mailto:httishere0728@gmail.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>













</div>
    </div>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script type="text/javascript">
$(function () {
    var searchFunc = function (path, search_id, content_id) {
        'use strict';
        $.ajax({
            url: path,
            dataType: "xml",
            success: function (xmlResponse) {
                // get the contents from search data
                var datas = $("entry", xmlResponse).map(function () {
                    return {
                        title: $("title", this).text(),
                        content: $("content", this).text(),
                        url: $("url", this).text()
                    };
                }).get();
                var $input = document.getElementById(search_id);
                var $resultContent = document.getElementById(content_id);
                $input.addEventListener('input', function () {
                    var str = '<ul class=\"search-result-list\">';
                    var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                    $resultContent.innerHTML = "";
                    if (this.value.trim().length <= 0) {
                        return;
                    }
                    // perform local searching
                    datas.forEach(function (data) {
                        var isMatch = true;
                        var data_title = data.title.trim().toLowerCase();
                        var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                        var data_url = data.url;
                        data_url = data_url.indexOf('/') === 0 ? data.url : '/' + data_url;
                        var index_title = -1;
                        var index_content = -1;
                        var first_occur = -1;
                        // only match artiles with not empty titles and contents
                        if (data_title !== '' && data_content !== '') {
                            keywords.forEach(function (keyword, i) {
                                index_title = data_title.indexOf(keyword);
                                index_content = data_content.indexOf(keyword);
                                if (index_title < 0 && index_content < 0) {
                                    isMatch = false;
                                } else {
                                    if (index_content < 0) {
                                        index_content = 0;
                                    }
                                    if (i === 0) {
                                        first_occur = index_content;
                                    }
                                }
                            });
                        }
                        // show search results
                        if (isMatch) {
                            str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                            var content = data.content.trim().replace(/<[^>]+>/g, "");
                            if (first_occur >= 0) {
                                // cut out 100 characters
                                var start = first_occur - 20;
                                var end = first_occur + 80;
                                if (start < 0) {
                                    start = 0;
                                }
                                if (start === 0) {
                                    end = 100;
                                }
                                if (end > content.length) {
                                    end = content.length;
                                }
                                var match_content = content.substr(start, end);
                                // highlight all keywords
                                keywords.forEach(function (keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    match_content = match_content.replace(regS, "<em class=\"search-keyword\">" + keyword + "</em>");
                                });

                                str += "<p class=\"search-result\">" + match_content + "...</p>"
                            }
                            str += "</li>";
                        }
                    });
                    str += "</ul>";
                    $resultContent.innerHTML = str;
                });
            }
        });
    };

    searchFunc('/search.xml', 'searchInput', 'searchResult');
});
</script>

    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

	
    

    

    

    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
